<li>
  <label for="end_user_id">
    <?php echo $this->lang->line('label.promotion_download.user_id') ?><span>*</span></label>
  <div class="input">
    <select id="end_user_id" name="end_user_id" class="chzn chzn-done" style="visibility: visible;">
      <option value="0">
        <?php echo $this->lang->line('label.option.select') ?>
      </option>
      <?php
      $ref_objs = $this->end_user_model->get_all();
      foreach ($ref_objs as $ref) {
        ?>
        <option value="<?php echo $ref["id"] ?>"
                <?php echo empty($obj["end_user_id"]) || $obj["end_user_id"] != $ref["id"] ? "" : 'selected="selected"' ?>>
                  <?php echo $this->end_user_model->to_string($ref) ?>
        </option>
      <?php } ?>
    </select>
  </div>
</li>
<li>
  <label for="promotion_id">
    <?php echo $this->lang->line('label.promotion_download.promotion_id') ?><span>*</span>
  </label>
  <div class="input">
    <select id="promotion_id" name="promotion_id" class="chzn chzn-done" style="visibility: visible;">
      <option value="0">
        <?php echo $this->lang->line('label.option.select') ?>
      </option>
      <?php
      $ref_objs = $this->promotion_model->get_all();
      foreach ($ref_objs as $ref) {
        ?>
        <option value="<?php echo $ref["id"] ?>"
                <?php echo empty($obj["promotion_id"]) || $obj["promotion_id"] != $ref["id"] ? "" : 'selected="selected"' ?>>
                  <?php echo $this->promotion_model->to_string($ref) ?>
        </option>
      <?php } ?>
    </select>
  </div>
</li>
<li>
  <label for="code"><?php echo $this->lang->line('label.promotion_download.code') ?><span>*</span></label>
  <div class="input"><input type="text" id="code" value="<?php echo empty($obj["code"]) ? "" : $obj["code"] ?>" name="code">
  </div>
</li>
<li>
  <label for="num_get"><?php echo $this->lang->line('label.promotion_download.num_get') ?><span>*</span></label>
  <div class="input">
    <input type="text" id="num_get" value="<?php echo empty($obj["num_get"]) ? "0" : $obj["num_get"] ?>" name="num_get">
  </div>
</li>
<li>
  <label for="status"><?php echo $this->lang->line('label.promotion_download.status') ?></label>
  <div class="input">
    <select name="status" class="chzn chzn-done" id="selMF9" style="visibility: visible">
      <?php
      $status_array = array(
          PROMOTION_DOWNLOAD_NEW => $this->lang->line('label.promotion.download.new'),
          PROMOTION_DOWNLOAD_GOT => $this->lang->line('label.promotion.download.got'),
          PROMOTION_DOWNLOAD_CANCEL => $this->lang->line('label.promotion.download.cancel'),
          PROMOTION_DOWNLOAD_REJECT => $this->lang->line('label.promotion.download.reject'));
      foreach ($status_array as $value => $label) {
        ?>
        <option value="<?php echo $value ?>"
                <?php echo isset($status) && $status == $value ? 'selected="selected"' : '' ?>>
                  <?php echo $label ?>
        </option>
      <?php } ?>
    </select>

  </div>
</li>